# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-pefile
_pkgname=pefile
pkgver=2022.5.30
pkgrel=0
pkgdesc="Python PE parsing module"
url="https://github.com/erocarrera/pefile"
arch="noarch"
license="MIT"
depends="py3-future python3"
makedepends="py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/erocarrera/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-pefile # Backwards compatibility
provides=py-pefile=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
6f3ade22b5a6697947daa000e9436379874bcd0520344580940a64bbb272e22569e648340bdfc37de9aca948864c6375941e785494dc6c6006e3f878fbda1984  pefile-2022.5.30.tar.gz
"
